// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** addTask POST /api/task/add */
export async function addTaskUsingPost(body: API.TaskAddRequest, options?: { [key: string]: any }) {
  return request<API.BaseResponseLong_>('/api/task/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** deleteTask POST /api/task/delete */
export async function deleteTaskUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/task/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listTaskByUserId POST /api/task/list/page/vo */
export async function listTaskByUserIdUsingPost(options?: { [key: string]: any }) {
  return request<API.BaseResponseListTask_>('/api/task/list/page/vo', {
    method: 'POST',
    ...(options || {}),
  })
}

/** updateTask POST /api/task/update */
export async function updateTaskUsingPost(
  body: API.TaskUpdateRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/task/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
